
package adoc;

import java.io.File;
import javax.swing.filechooser.*;


/**
 *
 * @author ILikePancakes
 */
public class AdocFileView extends FileView {

    @Override
    public String getName(File f) {
        return null; //let the L&F FileView figure this out
    }

    @Override
    public String getDescription(File f) {
        return null; //let the L&F FileView figure this out
    }

    @Override
    public Boolean isTraversable(File f) {
        return null; //let the L&F FileView figure this out
    }

    @Override
    public String getTypeDescription(File f) {
        String filename = f.getName();
        String extension = AdocUtilities.getExtension(filename);
        String type = null;

        if (extension != null) {
            if (extension.equals("ADOC")) {
                type = "ADOC failas";
            }
        }
        return type;
    }
}
